﻿@model ITXHWEB.Models.WBFEHLModel

@section Scripts {
    @Scripts.Render("~/bundles/jquery")

    <script>
        $(function () {
            $("select[id='EKEY']").change(function () {
                @*这里进行赋值操作*@
            });
        });
    </script>
}


@using (Html.BeginForm("PWB19X", "WBFEHL"))
{
    @Html.AntiForgeryToken()
    @Html.ValidationSummary()
    @*
        <script type="text/javascript">
        function OnEKEYChg(_EPOS, _EKEY) {
            var status = $("#ekeyDropDown" + _EPOS).val();
            var dataString = 'EPOS=' + _EPOS + '&EKEY=' + _EKEY ;
        $.ajax({
            type: 'POST',
            url: "/WBFEHL/OnEKEYChg",
            data: dataString,
            success:
                        function () { location.reload(true); },
            Error: function () { alert("failure"); }
        });
        }
       
    </script>*@
    <div>
      
        <table>
             
                <tr>
                    <td>
                      @Html.LabelFor(m => m.EPOS)
                    </td>
                    <td>
                        @Html.Label(Model.EPOS)
                    </td>
                    <td>
                        @Html.LabelFor(m => m.WBFLGVON)
                    </td>
                    <td>
                        @Html.Label(Model.WBFLGVON)
                    </td>
                    <td>
                        @Html.LabelFor(m => m.WBFLGBIS)
                    </td>

                    <td>
                        @Html.Label(Model.WBFLGBIS)
                    </td>
                    <td>
                        @Html.TextBoxFor(m => m.EKEY, new { autofocus = "autofocus" })
                    </td>
                    <td>
                        @Html.LabelFor(model => model.EKEY)：
                        @Html.DropDownListFor(model => model.EKEY, ViewData["list"] as IEnumerable<SelectListItem>)  
                    </td>
                    <td>
                        @Html.Label(Model.EKEY)
                    </td>
                    <td>
                        @Html.Action("PERSTART", "WBFEHL")
                        @Html.Action("PEREND", "WBFEHL")
                        <input type="submit" value="确认/OK" name="action" />
                    </td>
                </tr>
            
        </table>   
    </div>
}


